package org.alino.core.shiro.model;


import org.alino.core.shiro.session.SessionStatus;

import java.util.Date;

/**
 * @Desc TODO
 * @Author by Brant
 * @Date 2017/1/12
 */
public class UserOnline extends UserBase{
    private static final long serialVersionUID = 193782220229269951L;

    private String sessionId;
    private String host;
    private Date startTime;
    private Date lastAccess;
    private long timeout;
    private byte sessionStatus = SessionStatus.SESSION_STATUS_ONLINE;

    public UserOnline() {
    }

    public UserOnline(UserBase user){
        super(user);
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getLastAccess() {
        return lastAccess;
    }

    public void setLastAccess(Date lastAccess) {
        this.lastAccess = lastAccess;
    }

    public long getTimeout() {
        return timeout;
    }

    public void setTimeout(long timeout) {
        this.timeout = timeout;
    }

    public byte getSessionStatus() {
        return sessionStatus;
    }

    public void setSessionStatus(byte sessionStatus) {
        this.sessionStatus = sessionStatus;
    }
}
